package edu.gyu.myshop.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import edu.gyu.myshop.dao.OrderDetailDao;
import edu.gyu.myshop.model.Myuser;
import edu.gyu.myshop.dao.MyuserDao;
import edu.gyu.myshop.model.OrderDetail;
import edu.gyu.myshop.service.MyuserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ls
 * @since 2024-06-18
 */
@Service
public class MyuserServiceImpl extends ServiceImpl<MyuserDao, Myuser> implements MyuserService {
    @Autowired
    private MyuserDao userDao;

    @Override
    public IPage<Myuser> userPage(int page, int size) {
        Page<OrderDetail> orderPage = new Page<>(page, size);
        return userDao.userPage(orderPage);
    }
}
